package cn.xueden.service.service;

import cn.xueden.service.RocketMQProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SimpleMessageService {

    @Autowired
    private RocketMQProducer producer;

    public void sendMessage(String topic, String message) {
        producer.sendMsg(message);
    }

}
